projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a425e6b
)
use $srcdir instead of the $OBJ_DIR hack
author
Elliot Lee
<sopwith@src.gnome.org>
Wed, 25 Nov 1998 16:34:23 +0000
(16:34 +0000)
committer
Elliot Lee
<sopwith@src.gnome.org>
Wed, 25 Nov 1998 16:34:23 +0000
(16:34 +0000)
autogen.sh
patch
|
blob
|
history
diff --git
a/autogen.sh
b/autogen.sh
index e722403dfe0bf25fb1246ffb9fe17085b6627a75..74950e2564f796dbc89b2409f3d506124da8d2fc 100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-1,6
+1,10
@@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+pushd $srcdir
PROJECT=Gtk+
TEST_TYPE=-d
FILE=gdk
@@
-56,14
+60,9
@@
aclocal $ACLOCAL_FLAGS
automake $am_opt
autoconf
+popd
-if [ -z "$OBJ_DIR" ]; then
- ./configure "$@"
-else
- mkdir -p "$OBJ_DIR"
- cd "$OBJ_DIR"
- ../configure "$@"
-fi
+$srcdir/configure "$@"
echo
echo "Now type 'make' to compile $PROJECT."